package com.fatcat.easybuy.mapper;


import com.fatcat.easybuy.pojo.EasyBuyNews;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface EasyBuyNewsMapper {

    List<EasyBuyNews> selectAllNews(Map<String, Object> params);

    EasyBuyNews selectNewsById(Integer id);

    int insertNews(EasyBuyNews easybuyNews);

    int updateNews(EasyBuyNews easybuyNews);

    int deleteNewsById(Integer id);
}
